package com.szit.adminclient.feign.fallback;

import com.szit.adminclient.feign.AdminFeign;
import com.szit.util.CodeMsg;
import com.szit.util.Result;
import com.szit.util.vo.*;
import org.springframework.stereotype.Component;

@Component
public class AdminFeignFallbackFactory implements AdminFeign {

    @Override
    public Result login(LoginUser loginUser) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result loginOut(String token) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updatePasswordByUsername(ModifyPasswordInfo modifyPasswordInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result insertAdminUser(AdminUserInfo adminUserInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deleteAdminUserByUserId(String token, Integer userId) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result selectAllUser(String token, Integer pageNum, Integer pageSize) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result insertAdminPermission(AdminPermissionInfo adminPermissionInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deletePermissionById(String token, Integer permissionId) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updatePermissionById(AdminPermissionInfo adminPermissionInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result selectAllPermission(String token, Integer pageNum, Integer pageSize) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result insertAdminRole(AdminRoleInfo adminRoleInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deleteRoleById(String token, Integer roleId) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updateRoleById(AdminRoleInfo adminRoleInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result selectAllAdminRole(String token, Integer pageNum, Integer pageSize) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updateUserRoleByUserId(AdminUserRoleInfo adminUserRoleInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deleteAdminUserRole(AdminUserRoleInfo adminUserRoleInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result updateRolePermissionByRoleId(AdminRolePermissionInfo adminRolePermissionInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }

    @Override
    public Result deleteAdminRolePermission(AdminRolePermissionInfo adminRolePermissionInfo) {
        return Result.error(CodeMsg.SERVER_EXCEPTION);
    }
}
